<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<% String adminName = request.getParameter("adminName");%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>编辑药品</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script src="<%=basePath%>js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="<%=basePath%>js/jquery.uniform.js" type="text/javascript"></script>
    <link rel="stylesheet" href="<%=basePath%>css/uniform.default.css" type="text/css" media="screen">
    <link rel="stylesheet" href="<%=basePath%>css/addUpdate.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="<%=basePath%>css/slide.css" type="text/css" media="screen"/>
    <script type="text/javascript">
        $(function () {
            $("input, textarea, select, button").uniform();
        });
    </script>
</head>

<body>
<!-- Login -->
<div id="toppanel">
    <div class="tab">
        <ul class="login">
            <li class="left">&nbsp;</li>
            <li>欢迎您,管理员</li>
            <li class="sep">|</li>
            <li id="toggle">
                <a id="close" class="close" href="">退出</a>
            </li>
            <li class="right">&nbsp;</li>
        </ul>
    </div>
</div>

<div id="container">
    <div id="content" style="padding-top:50px;">
        <form action="Medicine!updateMedicine.action" method="post">
            <input type="hidden" name="id" value="${medicine.id}">
            <h1>编辑药品</h1>
            <ul>
                <li><label>药品名称：</label>
                    <input type="text" name="medicineName" size="40" value="${medicine.medicineName}"></li>

                <li><label>药品英文名：</label>
                    <input type="text" name="medicineEnglishName" size="40" value="${medicine.medicineEnglishName}"></li>

                <li>
                    <label>分类：</label>
                    <input type="text" name="type" size="40" value="${medicine.type}"></li>

                <li><label>药品类别：</label><input type="text" name="sort" size="40" value="${medicine.sort}"></li>

                <li><label>性状：</label><input type="text" name="characters" size="40" value="${medicine.characters}"></li>

                <li><label>用量用法：</label><input type="text" name="dosage" size="40" value="${medicine.dosage}"></li>

                <li><label>适应症：</label>
                    <textarea cols="40" rows="5" name="adaptation" >${medicine.adaptation}</textarea></li>

                <li><label>成分：</label>
                    <textarea cols="40" rows="5" name="components">${medicine.components}</textarea></li>

                <li><label>不良反应：</label><input type="text" name="sideEffects" size="40" value="${medicine.sideEffects}"></li>

                <li><label>禁忌：</label><textarea cols="40" rows="5" name="taboo">${medicine.taboo}</textarea>
                <li>

                <li><label>注意事项：</label><textarea cols="40" rows="5" name="caution">${medicine.caution}</textarea>
                </li>
                <li>
                    <input type="submit" value="提交"/>
                    <input type="reset" value="重置"/>
                </li>
            </ul>
        </form>
    </div>
</div>
</body>
</html>
